Detecting and Escaping Infinite Loops with Jolt

نویسندگان

  • Michael Carbin
  • Sasa Misailovic
  • Michael Kling
  • Martin C. Rinard
چکیده

Infinite loops make applications unresponsive. Potential problems include lost work or output, denied access to application functionality, and a lack of responses to urgent events. We present Jolt, a novel system for dynamically detecting and escaping infinite loops. At the user’s request, Jolt attaches to an application to monitor its progress. Specifically, Jolt records the program state at the start of each loop iteration. If two consecutive loop iterations produce the same state, Jolt reports to the user that the application is in an infinite loop. At the user’s option, Jolt can then transfer control to a statement following the loop, thereby allowing the application to escape the infinite loop and ideally continue its productive execution. The goal is to enable the application to execute long enough to save any pending work, finish any in-progress computations, or respond to any urgent events. We evaluated Jolt by applying it to detect and escape eight infinite loops in five benchmark applications. Jolt was able to detect seven of the eight infinite loops (the eighth changes the state on every iteration). We also evaluated the quality of escaping an infinite loop as an alternative to terminating the application. In all of our benchmark applications, escaping an infinite loop produced a more useful output than terminating the application. Finally, we evaluated how well escaping from an infinite loop approximated the correction that the developers later made to the application. For two out of our eight loops, escaping the infinite loop produced the same output as the fixed version of the application.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Circadian Rhythms: An Electric Jolt to the Clock

The animal circadian pacemaker is composed of two transcriptional feedback loops, which regulate electrical activity in circadian neurons. Surprisingly, a new study reports that electrical activity can reprogram circadian transcription, and identifies CREB proteins as candidates for this reprograming.

متن کامل

Heuristic Approach of Automated Test Data Generation For Programs Having Array Of Different Dimensions and Loops With Variable Number Of Iteration

In software testing, loops are important spot for error detection. Execution of program spend large amount of time in loops. Without covering paths going through loops we can not get better code coverage. Most of the mistakes are made in loops of programs. Infinite loop creates lots of problem in detecting the errors. In fact, it is impossible to detect all kinds of infinite looping automatical...

متن کامل

New Mechanics of Knee Joint Injury

The prediction and prevention of knee joint injury is an important aspect of preventive health science. This paper proposes a new coupled–loading–rate hypothesis, which states that the main cause of knee injury is a Euclidean jolt, or SE(3)−jolt, an impulsive loading that strikes knee in several coupled degrees-of-freedom simultaneously. Informally, it is a rate-of-change of acceleration in 6-d...

متن کامل

Jolt accentuation and its value as a sign in diagnosis of meningitis in patients with fever and headache

OBJECTIVES Meningitis is an important disease among the patients being visited in Emergency Departments (EDs). There are many signs to diagnose it with different sensitivity and specificity reported in previously done studies. Current study tries to evaluate diagnostic accuracy of "Jolt accentuation" in the diagnosis (Dx.) of meningitis in patients with fever and headache. MATERIALS AND METHO...

متن کامل

Analyzing new features of infected web content in detection of malicious web pages

Recent improvements in web standards and technologies enable the attackers to hide and obfuscate infectious codes with new methods and thus escaping the security filters. In this paper, we study the application of machine learning techniques in detecting malicious web pages. In order to detect malicious web pages, we propose and analyze a novel set of features including HTML, JavaScript (jQuery...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011